import React from 'react';
import {
  BrowserRouter as Router,
  Switch,
  Route,
  // Link
} from "react-router-dom";

import Home from './page/home'
import News from './page/news'

function App() {
  return (
    <Router>
      <Switch>
        {/* exact: 精确匹配 path */}
        <Route exact path="/" component={Home}>
        </Route>

        <Route path="/news" component={News}>
        </Route>

      </Switch>
    </Router>
  )
}

export default App;